package com.zlll.winner.controller.media;

import com.zlll.winner.LoginUser;
import com.zlll.winner.business.service.media.IMediaUrlSettingService;
import com.zlll.winner.common.BaseController;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 视频流地址管理
 */
@LoginUser
@RestController
@RequestMapping(value = "/media/setting")
public class MediaUrlSettingController extends BaseController {

    @Reference
    private IMediaUrlSettingService iMediaUrlSettingService;

    /**
     * 查询主持人信息 根据栏目id获取
     * @return
     */
    @PostMapping(value = "url")
    public Object url(){
        return iMediaUrlSettingService.getMediaUrlSetting();
    }
}
